$(document).ready(function(){
	$("#bg_music").append('<audio id="m_bg_music" loop="loop" preload="auto" autoplay="autoplay" src="../music/bg.mp3"/>');
	var mp3=$('#m_bg_music')[0];
	$('#bg_music_btn').click(function(){
		var num =$('#bg_music_btn').attr('num');
		if(num=="1"){
			$('#bg_music_btn').attr('num','0');
			mp3.pause();
		}
		if(num=="0"){
			$('#bg_music_btn').attr('num','1');
			mp3.play();
		}
	});
});